package edu.yctc.kc.constant;

import java.util.List;

import com.google.common.collect.ImmutableList;

/**
 * 
 * @className Service
 * @description 提供的服务枚举
 * @author zyj
 * @date 2019年12月28日
 *
 */
public class Service {

    public static final String FOOD = "食物供应";
    public static final String MOVIE = "播放电影";

    public static final List<String> ALL_SERVICE = ImmutableList.of(FOOD, MOVIE);

    public static boolean isLegal(String service) {
        for (String string : ALL_SERVICE) {
            if (string.equals(service)) {
                return true;
            }
        }
        return false;
    }
}
